/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gps.cms.model;
/**
 *
 * @author nam eco
 */
import java.io.Serializable;
import javax.persistence.*;

@Entity
@Table(name = "s_users")

public class User implements Serializable  {
    
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id;
    private String username;
    private String password;

    public User() {
    }
    
    public User(int id,String username,String password){
            this.id = id;
            this.username = username;
            this.password = password;
    }

    
    /**
     * @return the lastname
     */
   



    @Id
    @Column(name = "ID", unique = true, nullable = false)
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the username
     */
     @Column(name = "USERNAME", unique = true, nullable = false)
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the password
     */
    @Column(name = "PASSWORD", unique = true, nullable = false)
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the username
   
     @Column(name = "USER_NAME",unique = true, nullable = false)
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

     @Column(name = "PASSWORD",unique = true, nullable = false)
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

     @Column(name = "GROUP_ID",unique = true, nullable = false)
    public int getGroupid() {
        return groupid;
    }

    public void setGroupid(int groupid) {
        this.groupid = groupid;
    }

     @Column(name = "LONGITUDE",unique = true, nullable = false)
    public int getLongitude() {
        return longitude;
    }

    public void setLongitude(int longitude) {
        this.longitude = longitude;
    }


     @Column(name = "LATITUDE",unique = true, nullable = false)
    public int getLatitude() {
        return latitude;
    }


    public void setLatitude(int latitude) {
        this.latitude = latitude;
    }

     @Column(name = "CREATE_BY_USER",unique = true, nullable = false)
    public String getCreatebyuser() {
        return createbyuser;
    }


    public void setCreatebyuser(String createbyuser) {
        this.createbyuser = createbyuser;
    }

      */
    
}
